package com.ny.service;
import com.ny.entity.User;
import java.util.List;
public interface UserService {
    public List<User> findAllUser();
    public User login(String username, String password);

    Object registerUser(User user);

    User findUserByUsername(String username);
    
    // 通过邮箱找回密码相关方法
    User findUserByEmail(String email);
    
    int updatePassword(int userId, String newPassword);
    
    // 更新用户邮箱
    int updateEmail(int userId, String email);
}
